package com.ktgj.pay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.pay.mapper.InvoiceCheckingMapper;
import com.ktgj.pay.domain.InvoiceChecking;
import com.ktgj.pay.service.IInvoiceCheckingService;

/**
 * 发票核验Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-24
 */
@Service
public class InvoiceCheckingServiceImpl implements IInvoiceCheckingService 
{
    @Autowired
    private InvoiceCheckingMapper invoiceCheckingMapper;

    /**
     * 查询发票核验
     * 
     * @param id 发票核验ID
     * @return 发票核验
     */
    @Override
    public InvoiceChecking selectInvoiceCheckingById(Long id)
    {
        return invoiceCheckingMapper.selectInvoiceCheckingById(id);
    }

    /**
     * 查询发票核验列表
     * 
     * @param invoiceChecking 发票核验
     * @return 发票核验
     */
    @Override
    public List<InvoiceChecking> selectInvoiceCheckingList(InvoiceChecking invoiceChecking)
    {
        return invoiceCheckingMapper.selectInvoiceCheckingList(invoiceChecking);
    }

    /**
     * 新增发票核验
     * 
     * @param invoiceChecking 发票核验
     * @return 结果
     */
    @Override
    public int insertInvoiceChecking(InvoiceChecking invoiceChecking)
    {
        return invoiceCheckingMapper.insertInvoiceChecking(invoiceChecking);
    }

    /**
     * 修改发票核验
     * 
     * @param invoiceChecking 发票核验
     * @return 结果
     */
    @Override
    public int updateInvoiceChecking(InvoiceChecking invoiceChecking)
    {
        return invoiceCheckingMapper.updateInvoiceChecking(invoiceChecking);
    }

    /**
     * 批量删除发票核验
     * 
     * @param ids 需要删除的发票核验ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceCheckingByIds(Long[] ids)
    {
        return invoiceCheckingMapper.deleteInvoiceCheckingByIds(ids);
    }

    /**
     * 删除发票核验信息
     * 
     * @param id 发票核验ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceCheckingById(Long id)
    {
        return invoiceCheckingMapper.deleteInvoiceCheckingById(id);
    }
}
